package is.glif.fenius.translators.idc;

import is.glif.fenius.api.FReservation;

import java.util.ArrayList;

public class ReservationsCache {
    private ArrayList<FReservation> reservations;
    private Long timestamp;
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }
    public Long getTimestamp() {
        return timestamp;
    }
    public void setReservations(ArrayList<FReservation> reservations) {
        this.reservations = reservations;
    }
    public ArrayList<FReservation> getReservations() {
        return reservations;
    }

    private ReservationsCache() {
        timestamp = 0L;
        reservations = new ArrayList<FReservation>();
    }

    private static ReservationsCache instance;

    public static ReservationsCache getInstance() {
        if (instance == null) {
            instance = new ReservationsCache();
        }
        return instance;
    }


}
